@echo off 
echo=>F:\Jie\other\2.py
echo import webbrowser >>F:\Jie\other\2.py
echo from urllib.parse import quote >>F:\Jie\other\2.py
echo def search_word(text): >>F:\Jie\other\2.py
echo     new_text=quote(text) >>F:\Jie\other\2.py
echo     url='http://www.baidu.com/s?wd=%%s' %% new_text >>F:\Jie\other\2.py
echo     webbrowser.open(url) >>F:\Jie\other\2.py
echo. >>F:\Jie\other\2.py
echo target = "黑洞" >>F:\Jie\other\2.py
echo search_word(target) >>F:\Jie\other\2.py
python F:\Jie\other\2.py
pause